# -*- coding: UTF-8 -*-

import FileUtils



#历史版本列表
class VersionListHelper:
    def __init__(self, path):
        self._versionListData = FileUtils.getJsonFileData(path)

    def getVersionList(self):
        return self._versionListData

    def foreachVersion(self,callback):
        for versionStr in self._versionListData:  
            callback(versionStr)